<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>首頁</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<%@include file="/includes/jsp/base.jsp" %>
  </head>
  
	<body style="text-align: center">
		<a href="discounts/discounts_queryListDiscounts.action">商户列表</a>
		<a href="discounts.jsp">添加商户</a>
		<br/>
		登陆测试：
		<form action="user/user_login.action" method="post" id="form1">
		    <p>
			<label for="username">用户名:</label>
			<input type="text" name="user.userName" id="username"/>
			</p>
			<p>
			<label for="userpass">密　码:</label>
			<input type="password" name="user.userPass" id="userpass"/>
			</p>
			<input type="submit" value="提交" /><input type="reset" value="重置" />
		</form>
		<br/> 
		添加测试
		<form action="user/user_addUser.action" method="post" id="form2">
		    <p>
			<label for="username">用户名:</label>
			<input type="text" name="user.userName" id="username"/>
			</p>
			<p>
			<label for="userpass">密　码:</label>
			<input type="password" name="user.userPass" id="userpass"/>
			</p>
			<p>
			<label for="sex">性　别:</label>
			<input type="text" name="user.sex" id="sex"/>
			</p>
			<input type="submit" value="提交" /><input type="reset" value="重置" />
		</form>
		<br/>
		删除测试
		<form action="user/user_delUser.action" method="post" id="form3">
		    <p>
			<label for="username">用户名:</label>
			<input type="text" name="user.userName" id="username"/>
			</p>
			<input type="submit" value="提交" /><input type="reset" value="重置" />
		</form>
		
		查询全部
		<form action="user/user_search.action" method="post" id="form4">
			<input type="submit" value="提交" />
		</form>
		
		分页查询性别为男的用户
		<form action="user/user_queryPage.action" method="post" id="form5">
		    <p>
			<label for="start">第几页</label>
			<input type="text" name="start" id="start"/>
			</p>
			<p>
			<label for="limit">显示几条</label>
			<input type="text" name="limit" id="limit"/>
			</p>
			<input type="submit" value="提交" /><input type="reset" value="重置" />
		</form>
	</body>
</html>
